package com.dly.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dly.blog.meta.MetaObject;
import java.io.Serializable;
import java.io.Serial;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 权限
 * </p>
 *
 * @author DLY
 * @since 2024-11-13 15:16:31
 */
@Data
@TableName("blog_permission")
@Schema(name = "Permission", description = "权限")
@EqualsAndHashCode(callSuper = true)
public class Permission extends MetaObject {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "权限标识")
    @TableField("permission_code")
    private String permissionCode;

    @Schema(description = "权限名称")
    @TableField("permission_name")
    private String permissionName;
}
